Python3Script Xojo Plugin

Python3XojoClass.SetHashFunction Method (console safe)

Optionally sets hash function for your class which gets used by the Python hash() operator.

SetHashFunction(
   fuction as Ptr)

Parameters

fuction
Address of the hash function.

Remarks

Signature of the the callback function must be like:

SomeName(pySelf as Ptr) as Int64

Where SomeName can be anything you want.

See example use in the example project called: “Xojo creating new Python class (Advanced)”.

See Also

Python3XojoClass Class